package cn.zhangxin.pethome.system.department.mapper;

import cn.zhangxin.pethome.base.mapper.BaseMapper;
import cn.zhangxin.pethome.system.department.domain.Department;
import org.springframework.stereotype.Repository;

@Repository
public interface DepartmentMapper extends BaseMapper<Department> {
    //查询父id
    Long findByParentId(Long id);
    //父部门
    Department findByParent(Long parent_id);
}
